package com.my.bean;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 消息通知表
 * </p>
 *
 * @author 张子艺
 * @since 2018-08-29
 */
@TableName("messge")
public class Messge extends Model<Messge> {

    private static final long serialVersionUID = 1L;

	private Long id;
    /**
     * 消息
     */
	private String msg;
    /**
     * 创建时间
     */
	@TableField("create_time")
	private Long createTime;
    /**
     * 发送该条消息的人账户
     */
	private String username;
    /**
     * 该条消息的用户角色名
     */
	@TableField("role_name")
	private String roleName;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public Long getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Long createTime) {
		this.createTime = createTime;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getRoleName() {
		return roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "Messge{" +
			"id=" + id +
			", msg=" + msg +
			", createTime=" + createTime +
			", username=" + username +
			", roleName=" + roleName +
			"}";
	}
}
